package com.nulstudio.cloud.inventory.client;

import com.nulstudio.cloud.common.domain.vo.CommodityVo;
import com.nulstudio.cloud.common.exception.NulException;
import com.nulstudio.cloud.common.exception.NulExceptionConstants;
import org.springframework.stereotype.Component;

@Component
public class CommodityClientFallback implements CommodityClient {

    @Override
    public CommodityVo getCommodityById(int id) {
        throw new NulException(NulExceptionConstants.INTERNAL_SERVER_ERROR);
    }
}
